home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 128 19 / q19.d81 / t.p-list plus < prev    next >
Text File  |  2022-08-28  |  7KB  |  147 lines

  1.  
  2.                              P - L I S T   P L U S
  3.  
  4.                                by John K. Lunde
  5.  
  6.  
  7.       P-LIST PLUS for the C128 is a BASIC listing utility that 'uncrunches'
  8. text, translates all those strange graphic characters into their real-world
  9. meanings, summarizes multiple entries and prints the results on titled and
  10. numbered pages.  You can make listings in "reading" mode that show what the
  11. program will do, or in "entry" mode to show the exact keystrokes needed to
  12. enter it.  Output can be to the printer or screen.
  13.  
  14. FENDER'S NOTE: Since I use Jon Mattson's CONTROL80 in all my programs, and
  15. recommend it to everyone, I asked John Lunde to make sure P-LIST PLUS
  16. handles the extra commands that CONTROL80 provides.  A day later, John sent
  17. me an upgrade that takes care of the tokens CONTROL 80 uses.  My thanks to
  18. both Jo(h)ns!
  19.  
  20.  
  21.   HOW TO USE P-LIST PLUS
  22.   ----------------------
  23.  
  24.      If your printer has a skip-over-the-perforation feature or margin width
  25. controls, disable them; otherwise they'll conflict with P-LIST PLUS's own
  26. routines that do the same things.
  27.  
  28.      When you run P-LIST PLUS you'll see a title page displayed for a few
  29. seconds and then be instructed to insert the target disk.  That's the disk
  30. that has the program or programs on it that you want to list.  P-LIST PLUS
  31. should work on any type of drive numbered between 8 and 32.
  32.  
  33.      Insert it, press a key and a catalog of the disk's contents will
  34. shortly appear.  If you discover you've loaded the wrong disk, enter a "d"
  35. and try again.
  36.  
  37.      To select a file for P-LISTing, move the pointer with the CRSR keys to
  38. the filename and press RETURN.  You can use all four CRSR keys to move the
  39. pointer, or F7 and F5 to page forward or back if the directory is more than
  40. 64 titles long.  The catalog will change pages automatically if you move the
  41. pointer above the first title or below the last.
  42.  
  43.      Even though the program is compiled, the directory read routine is not
  44. real fast.  Be patient; even the longest directory will be read in less than
  45. 20 seconds.
  46.  
  47.       Selecting a filename takes you to the "formatter", where you can enter
  48. the output device, case, mode, width, title and range of lines to be listed.
  49. Default settings are already provided, so if you're happy with them all you
  50. have to do is press CRSR DOWN or RETURN until you're on the "List" line.  
  51. Use RETURN on that line to start listing.
  52.  
  53.      To change any entry on the formatter, just type over it: if P-LIST
  54. can't handle your input, you'll be told that it's an "invalid entry".  The
  55. length of the title is limited to the width of the listing or the width of
  56. the formatter line, whichever is shorter, and addresses for listing should
  57. be entered in the usual way.
  58.  
  59.      On the "Title" and "List" lines only, CLR clears the line; it has no
  60. effect on other lines.  On the "List" line you can enter the range of line
  61. numbers you want listed (if you don't want to list the whole program).  Just
  62. use the normal syntax (for example, 1200-1400 will list lines 1200 through
  63. 1400).
  64.  
  65.      You can go back to the catalog or read a new disk directory by entering
  66. C or D on the formatter.  To quit, press Q.
  67.  
  68.      Once the listing's started, you can pause it at any time by pressing
  69. any key.  To resume, press any key except F1; pressing F1 will take you back
  70. to the formatter.
  71.  
  72.      If you're listing to the printer, you'll be asked if you want to feed
  73. the form before you return to the formatter: P-LIST PLUS keeps track of the
  74. number of lines it's printed and after 54 lines advances the paper to start
  75. a new page.  If you don't feed the form after the last line of a listing's
  76. been printed, this "line count" will be kept and the next listing will
  77. continue the same page -- even if you change target programs or list
  78. something to the screen between printings.
  79.  
  80.      If you decide not to feed the form and then change your mind once
  81. you're back at the formatter, press F7.
  82.  
  83.      Although P-LISTed programs read in a straightforward way, there are a
  84. few peculiarities you need to be aware of.
  85.  
  86.  * There are five instructions that the reading mode can't reduce to single
  87. meanings since their effects depend on the output device the target program
  88. uses.  Two print as [FLASH ON/SGL. WIDTH] and [LWR CASE/DBL WIDTH]; in both
  89. cases, the screen effect is on the left and the printer effect is on the
  90. right.
  91.  
  92.  * The other three instructions are for color values that aren't the same on
  93. the 40 and 80 column screens. The 40 column color is on the left.
  94.  
  95.  * Where the CHR$ effect of a value is known, reading mode translates it:
  96. for instance, A$=CHR$(144) becomes A$=[BLK].  There are two values that have
  97. no CHR$ effect, though, and these are translated by the word BIN(ary), so
  98. that T$=CHR$(0) would P-LIST as T$=[BIN 0].
  99.  
  100.  * Reading mode also handles lines starting with REM in a special way: It
  101. removes the line number and the word REM before printing the text of the
  102. remark, which makes for a more readable listing.  If a REM line is found
  103. within six lines of the bottom of the page, the form will be fed before the
  104. line is printed so that the remark and the following code will be printed on
  105. the same page.
  106.  
  107.  * Also, REMs that are at the end of a line are moved out to the right
  108. margin with a dashed line to make them more visible.
  109.  
  110.  * There are three things that can make P-LIST PLUS crash: first, some
  111. protection schemes and some word processor programs create filenames
  112. containing control characters.  When P-LIST PLUS tries to list these names
  113. to the screen, they "print" as instructions that can make hash of the
  114. catalog.  The only thing you can do about this is to transfer the programs
  115. you want to list to another disk and work from that.
  116.  
  117.  * Second, target programs can contain a subtle structural error: although
  118. such programs load and run normally, there are a few "glitch bytes" between
  119. the end of one line and the beginning of the next.  P-LIST PLUS will list up
  120. to or partway through the "bad" line and then lock up.  To fix this, LOAD
  121. the target program, LIST the problem line to the screen, put the cursor on
  122. it and press RETURN.  This will clear the garbage out; reSAVE the target
  123. program and it should P-LIST normally.
  124.  
  125.  * Third, P-LIST PLUS only works on BASIC programs.  If you try to list an
  126. ML program that has no BASIC lines, the program will probably lock up.  All
  127. you can do is reset the computer and the drive.
  128.  
  129.      Take half an hour to play with P-LIST PLUS; after that, you'll have a
  130. good idea of how to use it.  P-LIST PLUS is so user-friendly that there's no
  131. point in describing all its features; just assume that whatever you want to
  132. do is possible and try it.  The worst that can happen is that the input will
  133. be ignored.
  134.  
  135. JKL
  136.  
  137. FENDER'S FINAL NOTE: Since we had room on this issue of LOADSTAR 128, we put
  138. the BASIC source code to P-LIST PLUS on the disk in a file called
  139. "pl-plus.bas".  John's code is very readable and commented.  Feel free to
  140. study it or modify it.  The opening REM statements tell how to set the
  141. memory parameters in Abacus' BASIC 128 COMPILER before re-compiling.  Choose
  142. option 3 (Advanced Development), then E for Memory.  Then press 1 for Bank 0
  143. Start and enter 7168.  Go back to the First Menu and choose option 1
  144. (P-Code).
  145.  
  146.                         **** R - Run    RETURN - Menu ****                  
  147.